/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.staf.NetworkReportGenerator.V2.Panasonic;

import ru.staf.NetworkReportGenerator.V2.LeafDevice;

import java.util.regex.Pattern;
import java.util.regex.Matcher;

/**
 *
 * @author aezhov
 */
public class RecorderWJND extends LeafDevice {
    String model = null;
    
    public RecorderWJND(String html, String ip, String mac) {
        super(mac, ip);
        Pattern p = Pattern.compile("^.+wj([a-z0-9]+)\".+$");
        Matcher m = p.matcher(html);
        if (m.matches()) {
            model = "WJ-" + m.group(1).toUpperCase();
        } else {
            model = "WJND-?";
        }
    }

    public String getVendor() { return "Panasonic"; }

    public String getModel() { return model; }

    public String getSpecificNotice() { return "РЕГИСТРАТОР"; }
}
